home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 12 code / Apple Events and Objects.sea / Apple Events and Objects / Application.h < prev    next >
MacBinary  |  1992-10-16  |  6.5 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Fri Oct 16 19:27:24 1992, modified Fri Oct 16 19:27:24 1992, creator 'MPS ', type ASCII, 5892 bytes "Application.h" , at 0x1784 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 41 70 70 6c 69 63 | 61 74 69 6f 6e 2e 68 00 |..Applic|ation.h.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 17 04 00 | 00 01 ac a7 05 00 5c a7 |........|......\.|
|00000060| 05 00 5c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..\.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1c 0d 00 00 |........|........|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0d 09 50 |--------|----...P|
|000000e0| 72 6f 67 72 61 6d 3a 09 | 43 50 6c 75 73 54 45 53 |rogram:.|CPlusTES|
|000000f0| 61 6d 70 6c 65 20 32 2e | 30 41 45 0d 09 46 69 6c |ample 2.|0AE..Fil|
|00000100| 65 3a 09 09 41 70 70 6c | 69 63 61 74 69 6f 6e 2e |e:..Appl|ication.|
|00000110| 68 0d 09 55 73 65 73 3a | 20 20 20 20 20 20 20 41 |h..Uses:| A|
|00000120| 70 70 4c 69 62 2e 68 0d | 0d 09 62 79 20 41 6e 64 |ppLib.h.|..by And|
|00000130| 72 65 77 20 53 68 65 62 | 61 6e 6f 77 0d 09 6f 66 |rew Sheb|anow..of|
|00000140| 20 41 70 70 6c 65 20 4d | 61 63 69 6e 74 6f 73 68 | Apple M|acintosh|
|00000150| 20 44 65 76 65 6c 6f 70 | 65 72 20 54 65 63 68 6e | Develop|er Techn|
|00000160| 69 63 61 6c 20 53 75 70 | 70 6f 72 74 0d 09 77 69 |ical Sup|port..wi|
|00000170| 74 68 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 73 |th modif|ications|
|00000180| 20 62 79 20 45 72 69 63 | 20 42 65 72 64 61 68 6c | by Eric| Berdahl|
|00000190| 0d 0d 09 43 6f 70 79 72 | 69 67 68 74 20 a9 20 31 |...Copyr|ight . 1|
|000001a0| 39 38 39 2d 31 39 39 30 | 20 41 70 70 6c 65 20 43 |989-1990| Apple C|
|000001b0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 0d 09 43 |omputer,| Inc...C|
|000001c0| 6f 70 79 72 69 67 68 74 | 20 a9 20 31 39 39 32 20 |opyright| . 1992 |
|000001d0| 45 72 69 63 20 42 65 72 | 64 61 68 6c 0d 09 41 6c |Eric Ber|dahl..Al|
|000001e0| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|000001f0| 64 2e 0d 0d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |d...----|--------|
|00000200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |--------|------*/|
|00000250| 0d 0d 23 69 66 6e 64 65 | 66 20 5f 5f 41 50 50 4c |..#ifnde|f __APPL|
|00000260| 49 43 41 54 49 4f 4e 5f | 5f 0d 23 64 65 66 69 6e |ICATION_|_.#defin|
|00000270| 65 20 5f 5f 41 50 50 4c | 49 43 41 54 49 4f 4e 5f |e __APPL|ICATION_|
|00000280| 5f 0d 0d 2f 2f 20 49 6e | 63 6c 75 64 65 20 6e 65 |_..// In|clude ne|
|00000290| 63 65 73 73 61 72 79 20 | 69 6e 74 65 72 66 61 63 |cessary |interfac|
|000002a0| 65 20 66 69 6c 65 73 0d | 23 69 66 6e 64 65 66 20 |e files.|#ifndef |
|000002b0| 5f 5f 53 54 52 49 4e 47 | 5f 5f 0d 23 69 6e 63 6c |__STRING|__.#incl|
|000002c0| 75 64 65 20 3c 53 74 72 | 69 6e 67 2e 68 3e 0d 23 |ude <Str|ing.h>.#|
|000002d0| 65 6e 64 69 66 0d 0d 23 | 69 66 6e 64 65 66 20 5f |endif..#|ifndef _|
|000002e0| 5f 41 50 50 4c 45 45 56 | 45 4e 54 53 5f 5f 0d 23 |_APPLEEV|ENTS__.#|
|000002f0| 69 6e 63 6c 75 64 65 20 | 3c 41 70 70 6c 65 45 76 |include |<AppleEv|
|00000300| 65 6e 74 73 2e 68 3e 0d | 23 65 6e 64 69 66 0d 23 |ents.h>.|#endif.#|
|00000310| 69 66 6e 64 65 66 20 5f | 5f 54 59 50 45 53 5f 5f |ifndef _|_TYPES__|
|00000320| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 54 79 70 65 73 |.#includ|e <Types|
|00000330| 2e 68 3e 0d 23 65 6e 64 | 69 66 0d 23 69 66 6e 64 |.h>.#end|if.#ifnd|
|00000340| 65 66 20 5f 5f 44 45 53 | 4b 5f 5f 0d 23 69 6e 63 |ef __DES|K__.#inc|
|00000350| 6c 75 64 65 20 3c 44 65 | 73 6b 2e 68 3e 0d 23 65 |lude <De|sk.h>.#e|
|00000360| 6e 64 69 66 0d 23 69 66 | 6e 64 65 66 20 5f 5f 45 |ndif.#if|ndef __E|
|00000370| 56 45 4e 54 53 5f 5f 0d | 23 69 6e 63 6c 75 64 65 |VENTS__.|#include|
|00000380| 20 3c 45 76 65 6e 74 73 | 2e 68 3e 0d 23 65 6e 64 | <Events|.h>.#end|
|00000390| 69 66 0d 23 69 66 6e 64 | 65 66 20 5f 5f 4f 53 55 |if.#ifnd|ef __OSU|
|000003a0| 54 49 4c 53 5f 5f 0d 23 | 69 6e 63 6c 75 64 65 20 |TILS__.#|include |
|000003b0| 3c 4f 53 55 74 69 6c 73 | 2e 68 3e 0d 23 65 6e 64 |<OSUtils|.h>.#end|
|000003c0| 69 66 0d 0d 2f 2f 20 77 | 65 20 6e 65 65 64 20 72 |if..// w|e need r|
|000003d0| 65 73 6f 75 72 63 65 20 | 69 64 73 0d 23 69 66 6e |esource |ids.#ifn|
|000003e0| 64 65 66 20 5f 5f 41 50 | 50 4c 49 42 5f 5f 0d 23 |def __AP|PLIB__.#|
|000003f0| 69 6e 63 6c 75 64 65 20 | 22 41 70 70 4c 69 62 2e |include |"AppLib.|
|00000400| 68 22 0d 23 65 6e 64 69 | 66 0d 0d 2f 2f 20 77 65 |h".#endi|f..// we|
|00000410| 20 6e 65 65 64 20 74 68 | 65 20 65 78 63 65 70 74 | need th|e except|
|00000420| 69 6f 6e 73 20 63 6f 64 | 65 0d 23 69 66 6e 64 65 |ions cod|e.#ifnde|
|00000430| 66 20 5f 5f 45 58 43 45 | 50 54 49 4f 4e 53 5f 5f |f __EXCE|PTIONS__|
|00000440| 0d 23 69 6e 63 6c 75 64 | 65 20 22 45 78 63 65 70 |.#includ|e "Excep|
|00000450| 74 69 6f 6e 73 2e 68 22 | 0d 23 65 6e 64 69 66 0d |tions.h"|.#endif.|
|00000460| 0d 63 6c 61 73 73 20 54 | 44 6f 63 75 6d 65 6e 74 |.class T|Document|
|00000470| 3b 0d 63 6c 61 73 73 20 | 54 44 6f 63 75 6d 65 6e |;.class |TDocumen|
|00000480| 74 4c 69 73 74 3b 0d 0d | 2f 2f 20 59 4e 43 52 65 |tList;..|// YNCRe|
|00000490| 73 75 6c 74 20 69 73 20 | 61 20 74 79 70 65 20 75 |sult is |a type u|
|000004a0| 73 65 64 20 74 6f 20 69 | 6e 64 69 63 61 74 65 20 |sed to i|ndicate |
|000004b0| 61 20 72 65 73 75 6c 74 | 20 66 72 6f 6d 0d 2f 2f |a result| from.//|
|000004c0| 20 61 20 75 73 65 72 20 | 6f 70 65 72 61 74 69 6f | a user |operatio|
|000004d0| 6e 2e 20 59 4e 43 20 6d | 65 61 6e 73 20 79 65 73 |n. YNC m|eans yes|
|000004e0| 2f 6e 6f 2f 63 61 6e 63 | 65 6c 2c 20 62 75 74 20 |/no/canc|el, but |
|000004f0| 79 65 73 0d 2f 2f 20 61 | 6e 64 20 6e 6f 20 63 61 |yes.// a|nd no ca|
|00000500| 6e 20 61 6c 73 6f 20 68 | 61 76 65 20 73 79 6e 6f |n also h|ave syno|
|00000510| 6e 79 6d 73 20 6c 69 6b | 65 20 53 61 76 65 20 61 |nyms lik|e Save a|
|00000520| 6e 64 20 44 69 73 63 61 | 72 64 2e 0d 65 6e 75 6d |nd Disca|rd..enum|
|00000530| 20 59 4e 43 52 65 73 75 | 6c 74 20 7b 20 79 65 73 | YNCResu|lt { yes|
|00000540| 52 65 73 75 6c 74 2c 20 | 6e 6f 52 65 73 75 6c 74 |Result, |noResult|
|00000550| 2c 20 63 61 6e 63 65 6c | 52 65 73 75 6c 74 20 7d |, cancel|Result }|
|00000560| 3b 0d 0d 2f 2a 0d 09 54 | 41 70 70 6c 69 63 61 74 |;../*..T|Applicat|
|00000570| 69 6f 6e 3a 0d 0d 09 54 | 68 69 73 20 69 73 20 6f |ion:...T|his is o|
|00000580| 75 72 20 63 6c 61 73 73 | 20 77 68 69 63 68 20 69 |ur class| which i|
|00000590| 6d 70 6c 65 6d 65 6e 74 | 73 20 61 20 62 61 73 69 |mplement|s a basi|
|000005a0| 63 20 4d 61 63 69 6e 74 | 6f 73 68 20 73 74 79 6c |c Macint|osh styl|
|000005b0| 65 20 70 72 6f 67 72 61 | 6d 2c 0d 09 69 6e 63 6c |e progra|m,..incl|
|000005c0| 75 64 69 6e 67 20 61 20 | 4d 75 6c 74 69 46 69 6e |uding a |MultiFin|
|000005d0| 64 65 72 2d 61 77 61 72 | 65 20 65 76 65 6e 74 20 |der-awar|e event |
|000005e0| 6c 6f 6f 70 2e 0d 2a 2f | 0d 0d 2f 2f 20 77 65 20 |loop..*/|..// we |
|000005f0| 64 65 72 69 76 65 20 66 | 72 6f 6d 20 68 61 6e 64 |derive f|rom hand|
|00000600| 6c 65 20 6f 62 6a 65 63 | 74 20 74 6f 20 70 72 65 |le objec|t to pre|
|00000610| 76 65 6e 74 20 66 72 61 | 67 6d 65 6e 74 61 74 69 |vent fra|gmentati|
|00000620| 6f 6e 0d 63 6c 61 73 73 | 20 54 41 70 70 6c 69 63 |on.class| TApplic|
|00000630| 61 74 69 6f 6e 20 7b 0d | 70 72 69 76 61 74 65 3a |ation {.|private:|
|00000640| 0d 09 73 74 61 74 69 63 | 20 4f 53 54 79 70 65 20 |..static| OSType |
|00000650| 66 43 72 65 61 74 6f 72 | 3b 0d 09 73 74 61 74 69 |fCreator|;..stati|
|00000660| 63 20 54 41 70 70 6c 69 | 63 61 74 69 6f 6e 2a 09 |c TAppli|cation*.|
|00000670| 67 41 70 70 6c 69 63 61 | 74 69 6f 6e 3b 0d 0d 70 |gApplica|tion;..p|
|00000680| 75 62 6c 69 63 3a 0d 09 | 73 74 61 74 69 63 20 54 |ublic:..|static T|
|00000690| 41 70 70 6c 69 63 61 74 | 69 6f 6e 2a 09 47 65 74 |Applicat|ion*.Get|
|000006a0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 28 29 3b 0d 09 |Applicat|ion();..|
|000006b0| 09 2f 2f 20 67 6c 6f 62 | 61 6c 20 61 63 63 65 73 |.// glob|al acces|
|000006c0| 73 6f 72 20 66 6f 72 20 | 74 68 65 20 61 70 70 6c |sor for |the appl|
|000006d0| 69 63 61 74 69 6f 6e 0d | 0d 09 2f 2f 20 4f 75 72 |ication.|..// Our|
|000006e0| 20 63 6f 6e 73 74 72 75 | 63 74 6f 72 0d 09 54 41 | constru|ctor..TA|
|000006f0| 70 70 6c 69 63 61 74 69 | 6f 6e 28 4f 53 54 79 70 |pplicati|on(OSTyp|
|00000700| 65 20 63 72 65 61 74 6f | 72 29 3b 0d 0d 09 2f 2f |e creato|r);...//|
|00000710| 20 70 72 6f 63 65 73 73 | 20 66 69 6e 64 65 72 20 | process| finder |
|00000720| 61 72 67 75 6d 65 6e 74 | 73 0d 09 76 69 72 74 75 |argument|s..virtu|
|00000730| 61 6c 20 76 6f 69 64 09 | 50 72 6f 63 65 73 73 41 |al void.|ProcessA|
|00000740| 72 67 73 28 29 3b 0d 0d | 09 2f 2f 20 43 61 6c 6c |rgs();..|.// Call|
|00000750| 20 74 68 69 73 20 72 6f | 75 74 69 6e 65 20 74 6f | this ro|utine to|
|00000760| 20 73 74 61 72 74 20 65 | 76 65 6e 74 20 6c 6f 6f | start e|vent loo|
|00000770| 70 20 72 75 6e 6e 69 6e | 67 0d 09 2f 2f 20 49 74 |p runnin|g..// It|
|00000780| 20 77 69 6c 6c 20 6e 6f | 74 20 72 65 74 75 72 6e | will no|t return|
|00000790| 20 75 6e 74 69 6c 20 74 | 68 65 20 75 73 65 72 20 | until t|he user |
|000007a0| 71 75 69 74 73 20 74 68 | 65 20 61 70 70 6c 69 63 |quits th|e applic|
|000007b0| 61 74 69 6f 6e 20 28 76 | 69 61 20 61 20 63 61 6c |ation (v|ia a cal|
|000007c0| 6c 0d 09 2f 2f 20 74 6f | 20 44 6f 51 75 69 74 2c |l..// to| DoQuit,|
|000007d0| 20 62 65 6c 6f 77 29 0d | 09 76 69 72 74 75 61 6c | below).|.virtual|
|000007e0| 20 76 6f 69 64 09 45 76 | 65 6e 74 4c 6f 6f 70 28 | void.Ev|entLoop(|
|000007f0| 29 3b 0d 0d 09 2f 2f 20 | 55 74 69 6c 69 74 79 20 |);...// |Utility |
|00000800| 72 6f 75 74 69 6e 65 73 | 20 79 6f 75 20 63 61 6e |routines| you can|
|00000810| 20 75 73 65 0d 09 73 74 | 61 74 69 63 20 42 6f 6f | use..st|atic Boo|
|00000820| 6c 65 61 6e 09 09 09 54 | 72 61 70 41 76 61 69 6c |lean...T|rapAvail|
|00000830| 61 62 6c 65 28 73 68 6f | 72 74 20 74 4e 75 6d 62 |able(sho|rt tNumb|
|00000840| 65 72 2c 54 72 61 70 54 | 79 70 65 20 74 54 79 70 |er,TrapT|ype tTyp|
|00000850| 65 29 3b 0d 09 09 2f 2f | 20 49 73 20 74 72 61 70 |e);...//| Is trap|
|00000860| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 3f 3f 3f 0d | impleme|nted???.|
|00000870| 09 69 6e 6c 69 6e 65 20 | 54 44 6f 63 75 6d 65 6e |.inline |TDocumen|
|00000880| 74 4c 69 73 74 2a 09 44 | 6f 63 4c 69 73 74 28 29 |tList*.D|ocList()|
|00000890| 20 7b 20 72 65 74 75 72 | 6e 20 66 44 6f 63 4c 69 | { retur|n fDocLi|
|000008a0| 73 74 3b 20 7d 3b 0d 09 | 73 74 61 74 69 63 20 4f |st; };..|static O|
|000008b0| 53 54 79 70 65 09 09 09 | 47 65 74 43 72 65 61 74 |SType...|GetCreat|
|000008c0| 6f 72 28 29 20 7b 20 72 | 65 74 75 72 6e 20 66 43 |or() { r|eturn fC|
|000008d0| 72 65 61 74 6f 72 3b 20 | 7d 3b 0d 09 73 74 61 74 |reator; |};..stat|
|000008e0| 69 63 20 76 6f 69 64 09 | 09 09 09 57 44 54 6f 44 |ic void.|...WDToD|
|000008f0| 69 72 49 44 28 73 68 6f | 72 74 20 77 64 52 65 66 |irID(sho|rt wdRef|
|00000900| 4e 75 6d 2c 20 73 68 6f | 72 74 26 20 76 52 65 66 |Num, sho|rt& vRef|
|00000910| 4e 75 6d 2c 20 6c 6f 6e | 67 26 20 64 69 72 49 44 |Num, lon|g& dirID|
|00000920| 29 3b 0d 09 09 2f 2f 20 | 75 74 69 6c 69 74 79 20 |);...// |utility |
|00000930| 72 6f 75 74 69 6e 65 20 | 74 6f 20 63 6f 6e 76 65 |routine |to conve|
|00000940| 72 74 20 61 20 77 6f 72 | 6b 69 6e 67 20 64 69 72 |rt a wor|king dir|
|00000950| 65 63 74 6f 72 79 20 74 | 6f 20 61 20 76 52 65 66 |ectory t|o a vRef|
|00000960| 4e 75 6d 2f 64 69 72 49 | 44 20 70 61 69 72 0d 0d |Num/dirI|D pair..|
|00000970| 70 72 6f 74 65 63 74 65 | 64 3a 0d 09 76 69 72 74 |protecte|d:..virt|
|00000980| 75 61 6c 20 6c 6f 6e 67 | 09 53 74 61 63 6b 4e 65 |ual long|.StackNe|
|00000990| 65 64 65 64 28 29 20 7b | 20 72 65 74 75 72 6e 20 |eded() {| return |
|000009a0| 30 3b 20 7d 3b 0d 09 09 | 2f 2f 20 52 65 74 75 72 |0; };...|// Retur|
|000009b0| 6e 73 20 74 6f 74 61 6c | 20 73 74 61 63 6b 20 73 |ns total| stack s|
|000009c0| 70 61 63 65 20 72 65 71 | 75 69 72 65 64 20 69 6e |pace req|uired in|
|000009d0| 20 62 79 74 65 73 2e 0d | 09 09 2f 2f 20 52 65 74 | bytes..|..// Ret|
|000009e0| 75 72 6e 73 20 30 20 62 | 79 20 64 65 66 61 75 6c |urns 0 b|y defaul|
|000009f0| 74 2c 20 77 68 69 63 68 | 20 74 65 6c 6c 73 20 74 |t, which| tells t|
|00000a00| 68 65 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |he initi|alizatio|
|00000a10| 6e 20 63 6f 64 65 0d 09 | 09 2f 2f 20 74 6f 20 75 |n code..|.// to u|
|00000a20| 73 65 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 73 |se the d|efault s|
|00000a30| 74 61 63 6b 20 73 69 7a | 65 2e 0d 09 76 69 72 74 |tack siz|e...virt|
|00000a40| 75 61 6c 20 6c 6f 6e 67 | 09 48 65 61 70 4e 65 65 |ual long|.HeapNee|
|00000a50| 64 65 64 28 29 20 7b 20 | 72 65 74 75 72 6e 20 30 |ded() { |return 0|
|00000a60| 3b 20 7d 3b 0d 09 09 2f | 2f 20 52 65 74 75 72 6e |; };.../|/ Return|
|00000a70| 73 20 74 6f 74 61 6c 20 | 68 65 61 70 20 73 70 61 |s total |heap spa|
|00000a80| 63 65 20 72 65 71 75 69 | 72 65 64 20 69 6e 20 62 |ce requi|red in b|
|00000a90| 79 74 65 73 2e 0d 09 09 | 2f 2f 20 52 65 74 75 72 |ytes....|// Retur|
|00000aa0| 6e 73 20 30 20 62 79 20 | 64 65 66 61 75 6c 74 2c |ns 0 by |default,|
|00000ab0| 20 77 68 69 63 68 20 74 | 65 6c 6c 73 20 74 68 65 | which t|ells the|
|00000ac0| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00000ad0| 63 6f 64 65 0d 09 09 2f | 2f 20 74 6f 20 75 73 65 |code.../|/ to use|
|00000ae0| 20 77 68 61 74 65 76 65 | 72 20 68 65 61 70 20 73 | whateve|r heap s|
|00000af0| 69 7a 65 20 69 73 20 67 | 69 76 65 6e 2e 0d 0d 09 |ize is g|iven....|
|00000b00| 2f 2f 20 63 61 6c 6c 65 | 64 20 62 79 20 45 76 65 |// calle|d by Eve|
|00000b10| 6e 74 4c 6f 6f 70 20 74 | 6f 20 70 72 6f 63 65 73 |ntLoop t|o proces|
|00000b20| 73 20 61 6e 20 69 6e 64 | 69 76 69 64 75 61 6c 20 |s an ind|ividual |
|00000b30| 65 76 65 6e 74 0d 09 76 | 69 72 74 75 61 6c 20 76 |event..v|irtual v|
|00000b40| 6f 69 64 09 50 72 6f 63 | 65 73 73 45 76 65 6e 74 |oid.Proc|essEvent|
|00000b50| 28 29 3b 0d 0d 09 2f 2f | 20 4c 6f 6f 70 20 63 6f |();...//| Loop co|
|00000b60| 6e 74 72 6f 6c 20 6d 65 | 74 68 6f 64 73 20 79 6f |ntrol me|thods yo|
|00000b70| 75 20 6d 61 79 20 6e 65 | 65 64 20 74 6f 20 6f 76 |u may ne|ed to ov|
|00000b80| 65 72 72 69 64 65 0d 09 | 76 69 72 74 75 61 6c 20 |erride..|virtual |
|00000b90| 76 6f 69 64 09 53 65 74 | 55 70 28 29 20 7b 7d 3b |void.Set|Up() {};|
|00000ba0| 09 09 09 09 2f 2f 20 52 | 75 6e 20 62 65 66 6f 72 |....// R|un befor|
|00000bb0| 65 20 65 76 65 6e 74 20 | 6c 6f 6f 70 20 73 74 61 |e event |loop sta|
|00000bc0| 72 74 73 0d 09 76 69 72 | 74 75 61 6c 20 76 6f 69 |rts..vir|tual voi|
|00000bd0| 64 09 44 6f 49 64 6c 65 | 28 29 20 7b 7d 3b 09 09 |d.DoIdle|() {};..|
|00000be0| 09 2f 2f 20 69 64 6c 65 | 20 74 69 6d 65 20 68 61 |.// idle| time ha|
|00000bf0| 6e 64 6c 65 72 20 28 62 | 6c 69 6e 6b 20 63 61 72 |ndler (b|link car|
|00000c00| 65 74 2c 20 62 61 63 6b | 67 72 6f 75 6e 64 20 74 |et, back|ground t|
|00000c10| 61 73 6b 73 29 0d 09 76 | 69 72 74 75 61 6c 20 76 |asks)..v|irtual v|
|00000c20| 6f 69 64 09 41 64 6a 75 | 73 74 4d 65 6e 75 73 28 |oid.Adju|stMenus(|
|00000c30| 29 20 7b 7d 3b 09 09 2f | 2f 20 6d 65 6e 75 20 75 |) {};../|/ menu u|
|00000c40| 70 64 61 74 65 72 20 72 | 6f 75 74 69 6e 65 0d 0d |pdater r|outine..|
|00000c50| 09 2f 2f 20 65 76 65 6e | 74 20 68 61 6e 64 6c 65 |.// even|t handle|
|00000c60| 72 73 20 79 6f 75 20 73 | 68 6f 75 6c 64 6e 27 74 |rs you s|houldn't|
|00000c70| 20 6e 65 65 64 20 74 6f | 20 6f 76 65 72 72 69 64 | need to| overrid|
|00000c80| 65 20 69 6e 20 61 20 74 | 79 70 69 63 61 6c 20 61 |e in a t|ypical a|
|00000c90| 70 70 6c 69 63 61 74 69 | 6f 6e 0d 09 76 69 72 74 |pplicati|on..virt|
|00000ca0| 75 61 6c 20 76 6f 69 64 | 09 44 6f 4f 53 45 76 65 |ual void|.DoOSEve|
|00000cb0| 6e 74 28 29 3b 0d 09 09 | 2f 2f 20 43 61 6c 6c 73 |nt();...|// Calls|
|00000cc0| 20 44 6f 53 75 73 70 65 | 6e 64 2c 20 44 6f 52 65 | DoSuspe|nd, DoRe|
|00000cd0| 73 75 6d 65 20 61 6e 64 | 20 44 6f 49 64 6c 65 20 |sume and| DoIdle |
|00000ce0| 61 73 20 61 70 72 6f 70 | 6f 73 0d 09 76 69 72 74 |as aprop|os..virt|
|00000cf0| 75 61 6c 20 76 6f 69 64 | 09 44 6f 4d 6f 75 73 65 |ual void|.DoMouse|
|00000d00| 44 6f 77 6e 28 29 3b 0d | 09 09 2f 2f 20 43 61 6c |Down();.|..// Cal|
|00000d10| 6c 73 20 44 6f 43 6f 6e | 74 65 6e 74 2c 20 44 6f |ls DoCon|tent, Do|
|00000d20| 47 72 6f 77 2c 20 44 6f | 5a 6f 6f 6d 2c 20 65 74 |Grow, Do|Zoom, et|
|00000d30| 63 0d 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 09 |c..virtu|al void.|
|00000d40| 44 6f 4b 65 79 44 6f 77 | 6e 28 29 3b 0d 09 09 2f |DoKeyDow|n();.../|
|00000d50| 2f 20 61 6c 73 6f 20 63 | 61 6c 6c 65 64 20 66 6f |/ also c|alled fo|
|00000d60| 72 20 61 75 74 6f 6b 65 | 79 20 65 76 65 6e 74 73 |r autoke|y events|
|00000d70| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 44 |..virtua|l void.D|
|00000d80| 6f 41 63 74 69 76 61 74 | 65 45 76 74 28 29 3b 0d |oActivat|eEvt();.|
|00000d90| 09 09 2f 2f 20 68 61 6e | 64 6c 65 73 20 73 65 74 |..// han|dles set|
|00000da0| 75 70 2c 20 61 6e 64 20 | 63 61 6c 6c 73 20 44 6f |up, and |calls Do|
|00000db0| 41 63 74 69 76 61 74 65 | 20 28 62 65 6c 6f 77 29 |Activate| (below)|
|00000dc0| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 44 |..virtua|l void.D|
|00000dd0| 6f 55 70 64 61 74 65 45 | 76 74 28 29 3b 0d 09 09 |oUpdateE|vt();...|
|00000de0| 2f 2f 20 68 61 6e 64 6c | 65 73 20 73 65 74 75 70 |// handl|es setup|
|00000df0| 2c 20 61 6e 64 20 63 61 | 6c 6c 73 20 44 6f 55 70 |, and ca|lls DoUp|
|00000e00| 64 61 74 65 20 28 62 65 | 6c 6f 77 29 0d 09 76 69 |date (be|low)..vi|
|00000e10| 72 74 75 61 6c 20 76 6f | 69 64 09 44 6f 4d 6f 75 |rtual vo|id.DoMou|
|00000e20| 73 65 49 6e 53 79 73 57 | 69 6e 64 6f 77 28 29 20 |seInSysW|indow() |
|00000e30| 7b 20 53 79 73 74 65 6d | 43 6c 69 63 6b 28 26 66 |{ System|Click(&f|
|00000e40| 54 68 65 45 76 65 6e 74 | 2c 20 66 57 68 69 63 68 |TheEvent|, fWhich|
|00000e50| 57 69 6e 64 6f 77 29 3b | 20 7d 3b 0d 09 76 69 72 |Window);| };..vir|
|00000e60| 74 75 61 6c 20 76 6f 69 | 64 09 44 6f 44 72 61 67 |tual voi|d.DoDrag|
|00000e70| 28 29 3b 0d 09 76 69 72 | 74 75 61 6c 20 76 6f 69 |();..vir|tual voi|
|00000e80| 64 09 44 6f 47 6f 41 77 | 61 79 28 29 3b 0d 09 09 |d.DoGoAw|ay();...|
|00000e90| 2f 2f 20 68 61 6e 64 6c | 65 73 20 73 65 74 75 70 |// handl|es setup|
|00000ea0| 2c 20 61 6e 64 20 63 61 | 6c 6c 73 20 54 44 6f 63 |, and ca|lls TDoc|
|00000eb0| 75 6d 65 6e 74 3a 3a 44 | 6f 43 6c 6f 73 65 0d 09 |ument::D|oClose..|
|00000ec0| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 44 6f 51 |virtual |void.DoQ|
|00000ed0| 75 69 74 28 42 6f 6f 6c | 65 61 6e 20 61 73 6b 55 |uit(Bool|ean askU|
|00000ee0| 73 65 72 2c 20 59 4e 43 | 52 65 73 75 6c 74 20 64 |ser, YNC|Result d|
|00000ef0| 65 66 61 75 6c 74 52 65 | 73 75 6c 74 29 3b 0d 0d |efaultRe|sult);..|
|00000f00| 09 2f 2f 20 68 61 6e 64 | 6c 65 72 73 20 79 6f 75 |.// hand|lers you|
|00000f10| 20 6d 69 67 68 74 20 6f | 76 65 72 72 69 64 65 0d | might o|verride.|
|00000f20| 09 76 69 72 74 75 61 6c | 20 76 6f 69 64 09 44 6f |.virtual| void.Do|
|00000f30| 48 69 67 68 4c 65 76 65 | 6c 45 76 65 6e 74 28 29 |HighLeve|lEvent()|
|00000f40| 3b 0d 0d 09 2f 2f 20 68 | 61 6e 64 6c 65 72 73 20 |;...// h|andlers |
|00000f50| 79 6f 75 20 4d 55 53 54 | 20 6f 76 65 72 72 69 64 |you MUST| overrid|
|00000f60| 65 20 66 6f 72 20 66 75 | 6e 63 74 69 6f 6e 61 6c |e for fu|nctional|
|00000f70| 69 74 79 3a 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |ity:..vi|rtual vo|
|00000f80| 69 64 09 41 64 6a 75 73 | 74 43 75 72 73 6f 72 28 |id.Adjus|tCursor(|
|00000f90| 29 20 3d 20 30 3b 0d 09 | 09 2f 2f 20 63 75 72 73 |) = 0;..|.// curs|
|00000fa0| 6f 72 20 61 64 6a 75 73 | 74 20 72 6f 75 74 69 6e |or adjus|t routin|
|00000fb0| 65 2c 20 73 68 6f 75 6c | 64 20 73 65 74 75 70 20 |e, shoul|d setup |
|00000fc0| 6d 6f 75 73 65 52 67 6e | 0d 09 76 69 72 74 75 61 |mouseRgn|..virtua|
|00000fd0| 6c 20 76 6f 69 64 09 44 | 6f 4d 65 6e 75 43 6f 6d |l void.D|oMenuCom|
|00000fe0| 6d 61 6e 64 28 73 68 6f | 72 74 20 6d 65 6e 75 49 |mand(sho|rt menuI|
|00000ff0| 44 2c 20 73 68 6f 72 74 | 20 6d 65 6e 75 49 74 65 |D, short| menuIte|
|00001000| 6d 29 20 3d 20 30 3b 0d | 09 76 69 72 74 75 61 6c |m) = 0;.|.virtual|
|00001010| 20 76 6f 69 64 09 44 6f | 4e 65 77 28 29 20 3d 20 | void.Do|New() = |
|00001020| 30 3b 0d 09 76 69 72 74 | 75 61 6c 20 76 6f 69 64 |0;..virt|ual void|
|00001030| 09 44 6f 4f 70 65 6e 28 | 29 20 3d 20 30 3b 0d 09 |.DoOpen(|) = 0;..|
|00001040| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 4f 70 65 |virtual |void.Ope|
|00001050| 6e 41 44 6f 63 28 73 68 | 6f 72 74 20 76 52 65 66 |nADoc(sh|ort vRef|
|00001060| 4e 75 6d 2c 20 6c 6f 6e | 67 20 64 69 72 49 44 2c |Num, lon|g dirID,|
|00001070| 0d 09 09 09 09 09 09 09 | 20 53 74 72 69 6e 67 50 |........| StringP|
|00001080| 74 72 20 66 4e 61 6d 65 | 2c 20 4f 53 54 79 70 65 |tr fName|, OSType|
|00001090| 20 66 54 79 70 65 29 20 | 3d 20 30 3b 0d 0d 09 2f | fType) |= 0;.../|
|000010a0| 2f 20 63 61 6c 6c 65 64 | 20 62 79 20 4f 53 45 76 |/ called| by OSEv|
|000010b0| 65 6e 74 20 28 6a 75 73 | 74 20 63 61 6c 6c 73 20 |ent (jus|t calls |
|000010c0| 44 6f 41 63 74 69 76 61 | 74 65 20 62 79 20 64 65 |DoActiva|te by de|
|000010d0| 66 61 75 6c 74 2c 20 73 | 6f 20 6e 6f 20 63 6c 69 |fault, s|o no cli|
|000010e0| 70 20 63 6f 6e 76 65 72 | 73 69 6f 6e 0d 09 2f 2f |p conver|sion..//|
|000010f0| 20 69 73 20 64 6f 6e 65 | 29 2e 20 49 66 20 79 6f | is done|). If yo|
|00001100| 75 20 77 61 6e 74 20 74 | 6f 20 63 6f 6e 76 65 72 |u want t|o conver|
|00001110| 74 20 63 6c 69 70 62 6f | 61 72 64 2c 20 6f 76 65 |t clipbo|ard, ove|
|00001120| 72 72 69 64 65 20 74 68 | 65 73 65 20 72 6f 75 74 |rride th|ese rout|
|00001130| 69 6e 65 73 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |ines..vi|rtual vo|
|00001140| 69 64 09 44 6f 53 75 73 | 70 65 6e 64 28 42 6f 6f |id.DoSus|pend(Boo|
|00001150| 6c 65 61 6e 20 64 6f 43 | 6c 69 70 43 6f 6e 76 65 |lean doC|lipConve|
|00001160| 72 74 29 3b 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |rt);..vi|rtual vo|
|00001170| 69 64 09 44 6f 52 65 73 | 75 6d 65 28 42 6f 6f 6c |id.DoRes|ume(Bool|
|00001180| 65 61 6e 20 64 6f 43 6c | 69 70 43 6f 6e 76 65 72 |ean doCl|ipConver|
|00001190| 74 29 3b 0d 0d 09 2f 2f | 20 49 66 20 79 6f 75 20 |t);...//| If you |
|000011a0| 68 61 76 65 20 61 6e 20 | 61 70 70 20 74 68 61 74 |have an |app that|
|000011b0| 20 6e 65 65 64 73 20 74 | 6f 20 6b 6e 6f 77 20 61 | needs t|o know a|
|000011c0| 62 6f 75 74 20 74 68 65 | 73 65 2c 20 6f 76 65 72 |bout the|se, over|
|000011d0| 72 69 64 65 20 74 68 65 | 6d 0d 09 76 69 72 74 75 |ride the|m..virtu|
|000011e0| 61 6c 20 76 6f 69 64 09 | 44 6f 4d 6f 75 73 65 55 |al void.|DoMouseU|
|000011f0| 70 28 29 20 7b 7d 3b 0d | 09 76 69 72 74 75 61 6c |p() {};.|.virtual|
|00001200| 20 76 6f 69 64 09 44 6f | 44 69 73 6b 45 76 74 28 | void.Do|DiskEvt(|
|00001210| 29 20 7b 7d 3b 0d 0d 09 | 2f 2f 20 55 74 69 6c 69 |) {};...|// Utili|
|00001220| 74 79 20 72 6f 75 74 69 | 6e 65 73 20 79 6f 75 20 |ty routi|nes you |
|00001230| 6e 65 65 64 20 74 6f 20 | 70 72 6f 76 69 64 65 20 |need to |provide |
|00001240| 74 6f 20 64 6f 20 4d 75 | 6c 74 69 46 69 6e 64 65 |to do Mu|ltiFinde|
|00001250| 72 20 73 74 75 66 66 0d | 09 76 69 72 74 75 61 6c |r stuff.|.virtual|
|00001260| 20 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 53 | unsigne|d long S|
|00001270| 6c 65 65 70 56 61 6c 28 | 29 20 7b 20 72 65 74 75 |leepVal(|) { retu|
|00001280| 72 6e 20 30 3b 20 7d 3b | 0d 09 09 2f 2f 20 68 6f |rn 0; };|...// ho|
|00001290| 77 20 6c 6f 6e 67 20 74 | 6f 20 73 6c 65 65 70 20 |w long t|o sleep |
|000012a0| 69 6e 20 57 61 69 74 4e | 65 78 74 45 76 65 6e 74 |in WaitN|extEvent|
|000012b0| 0d 0d 09 2f 2f 20 75 73 | 65 66 75 6c 20 76 61 72 |...// us|eful var|
|000012c0| 69 61 62 6c 65 73 0d 09 | 42 6f 6f 6c 65 61 6e 09 |iables..|Boolean.|
|000012d0| 09 09 66 44 6f 6e 65 3b | 09 09 09 09 09 2f 2f 20 |..fDone;|.....// |
|000012e0| 73 65 74 20 74 6f 20 74 | 72 75 65 20 77 68 65 6e |set to t|rue when|
|000012f0| 20 77 65 20 61 72 65 20 | 72 65 61 64 79 20 74 6f | we are |ready to|
|00001300| 20 71 75 69 74 0d 09 45 | 76 65 6e 74 52 65 63 6f | quit..E|ventReco|
|00001310| 72 64 09 09 66 54 68 65 | 45 76 65 6e 74 3b 09 09 |rd..fThe|Event;..|
|00001320| 09 09 2f 2f 20 6f 75 72 | 20 65 76 65 6e 74 20 72 |..// our| event r|
|00001330| 65 63 6f 72 64 0d 09 57 | 69 6e 64 6f 77 50 74 72 |ecord..W|indowPtr|
|00001340| 09 09 66 57 68 69 63 68 | 57 69 6e 64 6f 77 3b 09 |..fWhich|Window;.|
|00001350| 09 09 2f 2f 20 63 75 72 | 72 65 6e 74 6c 79 20 61 |..// cur|rently a|
|00001360| 63 74 69 76 65 20 77 69 | 6e 64 6f 77 0d 09 42 6f |ctive wi|ndow..Bo|
|00001370| 6f 6c 65 61 6e 09 09 09 | 66 49 6e 42 61 63 6b 67 |olean...|fInBackg|
|00001380| 72 6f 75 6e 64 3b 09 09 | 09 2f 2f 20 74 72 75 65 |round;..|.// true|
|00001390| 20 69 66 20 6f 75 72 20 | 61 70 70 20 69 73 20 73 | if our |app is s|
|000013a0| 75 73 70 65 6e 64 65 64 | 0d 09 42 6f 6f 6c 65 61 |uspended|..Boolea|
|000013b0| 6e 09 09 09 66 57 61 6e | 74 46 72 6f 6e 74 43 6c |n...fWan|tFrontCl|
|000013c0| 69 63 6b 73 3b 09 09 2f | 2f 20 74 72 75 65 20 69 |icks;../|/ true i|
|000013d0| 66 20 77 65 20 77 61 6e | 74 20 66 72 6f 6e 74 20 |f we wan|t front |
|000013e0| 63 6c 69 63 6b 73 0d 09 | 52 67 6e 48 61 6e 64 6c |clicks..|RgnHandl|
|000013f0| 65 09 09 66 4d 6f 75 73 | 65 52 67 6e 3b 09 09 09 |e..fMous|eRgn;...|
|00001400| 09 2f 2f 20 6d 6f 75 73 | 65 20 6d 6f 76 65 64 20 |.// mous|e moved |
|00001410| 72 65 67 69 6f 6e 20 28 | 73 65 74 20 69 74 20 69 |region (|set it i|
|00001420| 6e 20 79 6f 75 72 20 44 | 6f 49 64 6c 65 29 0d 09 |n your D|oIdle)..|
|00001430| 54 44 6f 63 75 6d 65 6e | 74 2a 09 09 66 43 75 72 |TDocumen|t*..fCur|
|00001440| 44 6f 63 3b 09 09 09 09 | 2f 2f 20 63 75 72 72 65 |Doc;....|// curre|
|00001450| 6e 74 6c 79 20 61 63 74 | 69 76 65 20 64 6f 63 75 |ntly act|ive docu|
|00001460| 6d 65 6e 74 20 28 69 66 | 20 61 6e 79 29 0d 09 54 |ment (if| any)..T|
|00001470| 44 6f 63 75 6d 65 6e 74 | 4c 69 73 74 2a 09 66 44 |Document|List*.fD|
|00001480| 6f 63 4c 69 73 74 3b 09 | 09 09 09 2f 2f 20 74 68 |ocList;.|...// th|
|00001490| 65 20 6c 69 73 74 20 6f | 66 20 64 6f 63 75 6d 65 |e list o|f docume|
|000014a0| 6e 74 73 0d 0d 09 73 74 | 61 74 69 63 20 42 6f 6f |nts...st|atic Boo|
|000014b0| 6c 65 61 6e 09 66 48 61 | 76 65 57 61 69 74 4e 65 |lean.fHa|veWaitNe|
|000014c0| 78 74 45 76 65 6e 74 3b | 09 09 2f 2f 20 74 72 75 |xtEvent;|..// tru|
|000014d0| 65 20 69 66 20 77 65 20 | 68 61 76 65 20 57 61 69 |e if we |have Wai|
|000014e0| 74 4e 65 78 74 45 76 65 | 6e 74 20 74 72 61 70 0d |tNextEve|nt trap.|
|000014f0| 09 73 74 61 74 69 63 20 | 42 6f 6f 6c 65 61 6e 09 |.static |Boolean.|
|00001500| 66 4f 6e 53 79 73 74 65 | 6d 37 3b 09 09 09 09 2f |fOnSyste|m7;..../|
|00001510| 2f 20 72 75 6e 6e 69 6e | 67 20 73 79 73 74 65 6d |/ runnin|g system|
|00001520| 20 37 20 6f 72 20 62 65 | 74 74 65 72 0d 7d 3b 0d | 7 or be|tter.};.|
|00001530| 0d 2f 2f 20 73 6f 6d 65 | 20 6f 74 68 65 72 20 68 |.// some| other h|
|00001540| 61 6e 64 79 20 75 74 69 | 6c 69 74 79 20 72 6f 75 |andy uti|lity rou|
|00001550| 74 69 6e 65 73 2c 20 6e | 6f 74 20 61 63 74 75 61 |tines, n|ot actua|
|00001560| 6c 6c 79 20 61 20 70 61 | 72 74 20 6f 66 20 61 70 |lly a pa|rt of ap|
|00001570| 70 6c 69 63 61 74 69 6f | 6e 20 63 6c 61 73 73 0d |plicatio|n class.|
|00001580| 0d 2f 2f 20 64 69 73 70 | 6c 61 79 20 61 6c 65 72 |.// disp|lay aler|
|00001590| 74 2c 20 75 73 69 6e 67 | 20 73 70 65 63 69 66 69 |t, using| specifi|
|000015a0| 65 64 20 65 72 72 6f 72 | 20 53 54 52 23 20 72 65 |ed error| STR# re|
|000015b0| 73 6f 75 72 63 65 20 61 | 6e 64 20 65 72 72 6f 72 |source a|nd error|
|000015c0| 20 63 6f 64 65 20 61 73 | 20 69 6e 64 65 78 0d 76 | code as| index.v|
|000015d0| 6f 69 64 20 41 6c 65 72 | 74 55 73 65 72 28 73 68 |oid Aler|tUser(sh|
|000015e0| 6f 72 74 20 65 72 72 52 | 65 73 49 44 2c 20 73 68 |ort errR|esID, sh|
|000015f0| 6f 72 74 20 65 72 72 43 | 6f 64 65 29 3b 0d 2f 2f |ort errC|ode);.//|
|00001600| 20 63 61 6c 6c 20 41 6c | 65 72 74 55 73 65 72 20 | call Al|ertUser |
|00001610| 74 6f 20 64 69 73 70 6c | 61 79 20 65 72 72 6f 72 |to displ|ay error|
|00001620| 20 6d 65 73 73 61 67 65 | 2c 20 74 68 65 6e 20 71 | message|, then q|
|00001630| 75 69 74 2e 2e 2e 0d 76 | 6f 69 64 20 42 69 67 42 |uit....v|oid BigB|
|00001640| 61 64 45 72 72 6f 72 28 | 73 68 6f 72 74 20 65 72 |adError(|short er|
|00001650| 72 52 65 73 49 44 2c 20 | 73 68 6f 72 74 20 65 72 |rResID, |short er|
|00001660| 72 43 6f 64 65 29 3b 0d | 42 6f 6f 6c 65 61 6e 20 |rCode);.|Boolean |
|00001670| 4c 6f 6f 6b 75 70 45 72 | 72 6f 72 53 74 72 69 6e |LookupEr|rorStrin|
|00001680| 67 28 73 68 6f 72 74 20 | 76 61 6c 75 65 2c 20 73 |g(short |value, s|
|00001690| 68 6f 72 74 20 72 65 73 | 49 44 2c 20 53 74 72 69 |hort res|ID, Stri|
|000016a0| 6e 67 50 74 72 20 73 74 | 72 29 3b 0d 0d 2f 2f 20 |ngPtr st|r);..// |
|000016b0| 75 73 65 66 75 6c 20 73 | 74 61 74 65 20 63 68 65 |useful s|tate che|
|000016c0| 63 6b 69 6e 67 20 42 6f | 6f 6c 65 61 6e 73 20 28 |cking Bo|oleans (|
|000016d0| 6d 6f 73 74 6c 79 20 66 | 6f 72 20 53 79 73 74 65 |mostly f|or Syste|
|000016e0| 6d 20 37 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |m 7 comp|atibilit|
|000016f0| 79 29 0d 65 78 74 65 72 | 6e 20 42 6f 6f 6c 65 61 |y).exter|n Boolea|
|00001700| 6e 20 67 48 61 76 65 43 | 6f 6c 6f 72 51 44 3b 0d |n gHaveC|olorQD;.|
|00001710| 0d 69 6e 6c 69 6e 65 20 | 76 6f 69 64 20 43 6f 70 |.inline |void Cop|
|00001720| 79 50 53 74 72 69 6e 67 | 28 53 74 72 69 6e 67 50 |yPString|(StringP|
|00001730| 74 72 20 74 6f 2c 20 53 | 74 72 69 6e 67 50 74 72 |tr to, S|tringPtr|
|00001740| 20 66 72 6f 6d 29 0d 7b | 0d 09 6d 65 6d 63 70 79 | from).{|..memcpy|
|00001750| 28 74 6f 2c 66 72 6f 6d | 2c 28 73 69 7a 65 5f 74 |(to,from|,(size_t|
|00001760| 29 20 28 66 72 6f 6d 5b | 30 5d 20 26 20 30 78 30 |) (from[|0] & 0x0|
|00001770| 66 66 29 20 2b 20 31 29 | 3b 0d 7d 0d 0d 23 65 6e |ff) + 1)|;.}..#en|
|00001780| 64 69 66 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |dif.....|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001810| 0d 0d 7d 3b 5c 00 0e 6b | 10 00 a0 ff ff 20 00 09 |..};\..k|..... ..|
|00001820| 6a 00 0e 6b 08 00 a1 ff | ff 20 00 09 77 00 00 00 |j..k....|. ..w...|
|00001830| 0d 41 70 70 6c 69 63 61 | 74 69 6f 6e 2e 68 02 00 |.Applica|tion.h..|
|00001840| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 34 00 80 |..TEXTMP|S ...4..|
|00001850| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 34 00 80 |..TEXTMP|S ...4..|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 a0 45 60 50 00 00 | 17 04 00 00 01 ac 00 14 |...E`P..|........|
|00001880| 5c 00 0e 04 c6 00 97 ff | ff 24 00 14 70 00 0e 04 |\.......|.$..p...|
|00001890| c2 03 84 ff ff 04 00 15 | 57 00 0e 04 ae 03 85 ff |........|W.......|
|000018a0| ff 04 00 15 5d 00 0e 04 | aa 03 86 ff ff 04 00 15 |....]...|........|
|000018b0| 65 00 0e 04 a6 03 87 ff | ff 04 00 15 6e 00 0e 04 |e.......|....n...|
|000018c0| a2 03 88 ff ff 04 00 15 | 76 00 0e 04 9e 00 8c ff |........|v.......|
|000018d0| ff 04 00 16 09 00 0e 04 | 92 00 8d ff ff 04 00 16 |........|........|
|000018e0| 1b 00 0e 04 8e f0 20 ff | ff 20 00 0b a9 00 00 00 |...... .|. ......|
|000018f0| 00 00 96 ff ff 20 00 0b | b5 00 00 00 00 00 97 ff |..... ..|........|
|00001900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001910| 00 12 00 01 00 00 00 4e | 00 50 00 5e 00 ba 01 a2 |.......N|.P.^....|
|00001920| 00 00 00 42 00 01 00 06 | 00 04 00 52 00 19 01 8d |...B....|...R....|
|00001930| 02 2d 00 52 00 19 01 8d | 02 2d a6 46 e8 36 00 00 |.-.R....|.-.F.6..|
|00001940| 08 1a 00 00 08 22 00 00 | 05 fe 01 00 00 00 00 1e |....."..|........|
|00001950| 00 52 00 19 01 8d 02 2d | 00 52 00 19 01 8d 02 2d |.R.....-|.R.....-|
|00001960| 00 00 05 fe 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 01 15 |.....n..|.n...>..|
|00001980| 07 ac 08 16 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00001990| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 03 f0 ff ff 00 00 00 4c | 01 1b 05 d4 00 00 00 00 |.......L|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+